#ifndef ADVERTISINGBOARD_H
#define ADVERTISINGBOARD_H

#include <QWidget>
#include<QPixmap>
#include<QList>

class QTimer;

class AdvertisingBoard : public QWidget
{
    Q_OBJECT
public:
    explicit AdvertisingBoard(QWidget *parent = nullptr);
    ~AdvertisingBoard();

public:
    void addPoster(const QPixmap& posterPix);

protected:
    void paintEvent(QPaintEvent* event);

private:
    QList<QPixmap*> posters;
    QTimer* timer;
};

#endif // ADVERTISINGBOARD_H
